#ifndef _MATH_EXCEPTION_H_
#define _MATH_EXCEPTION_H_

#include "./math_define.h"

namespace Mathematics {

	using namespace Except;

	template< class Type >
		class DivisionByZeroException: public Exception {
		protected:
			Type numerator;
		public:
			DivisionByZeroException( const string &message, const Type &numerator, Exception *innerException = NULL ):
				Exception( message, innerException ), numerator( numerator ) {
			};
			~DivisionByZeroException() {
			};

			inline Type getNumerator() const {
				return numerator;
			};

		};

};

#endif // _MATH_EXCEPTION_H_
